package org.seed.quantum.example.api;

public class DemoApiImpl implements DemoApi {
    public String getStringRst() {
        return "Hello String";
    }

    public DemoRst getEntityRst(DemoParam param) {

        DemoRst rst = new DemoRst();
        rst.setData(param.getName() + ":" + param.getId());
        return rst;
    }

    public DemoRst getPrimaryParamType(int a, float b) {
        DemoRst rst = new DemoRst();
        rst.setData(String.valueOf(a + b));
        return rst;
    }

    public DemoRst getBoxedParamType(Integer a, Double b) {
        DemoRst rst = new DemoRst();
        rst.setData(String.valueOf(a + b));
        return rst;
    }
}
